home *** CD-ROM | disk | FTP | other *** search
INI File | 1997-01-25 | 13.8 KB | 362 lines |
- - 1 -
- Sat 25-January-1997
-
- About TSUTLD in General (All rights reserved)
- =======================
-
- ┌───────────────────────────────────────────────────────────────┐
- │ Please do not distribute any part of this package separately. │
- └───────────────────────────────────────────────────────────────┘
-
- This is the fourth package in my utilities series. TSUTLD is a
- stand-alone companion to TSUTIL, TSUTLB, TSUTLC, TSUTLE, TSUTLF and
- TSUTLG. Although this TSUTLD set is for any type of PC, some of it
- is slightly inclined towards utilities with a laptop flavor.
-
- This package may be used and distributed freely for NON-COMMERCIAL,
- NON-INSTITUTIONAL, PRIVATE purposes, provided it is not changed in
- any way. (Repacking with another method is ok, though.) For ANY
- other usage, such as use in a business enterprise or a university,
- contact the author for registration. Uploading to bulletin boards is
- encouraged.
-
- The programs are under development. Comments and contacts are
- solicited. If you have any comments or bug reports, please do not
- hesitate to use electronic mail for communication.
-
- The author shall not be liable to the user for any direct, indirect
- or consequential loss arising from the use of, or inability to use,
- any program or file howsoever caused. No warranty is given that the
- programs will work under all circumstances.
-
- Timo Salmi (email: ts@uwasa.fi WWW: http://uwasa.fi/~ts/)
- Professor of Accounting and Business Finance
- Faculty of Accounting & Industrial Management
- University of Vaasa
- P.O. BOX 700, FIN-65101 Vaasa, Finland
-
-
- Timo Salmi UTiLities set D, release 2.3 includes the following
- * * ** * * * *
- utility-type programs:
-
- TSUTLD23 Fourth set of Utilities, T.Salmi
- Filename Comment
- -------- --------------------------------
- ADJCURS.BAT Batch shell for adjusting cursor
- BIGCURS.EXE Make the cursor better visible
- BIGNCURS.EXE NonResident temporary big cursor
- CAPS.EXE Get/set keyboard toggles
- FILES.EXE Summary of your different files
- FILE_ID.DIZ Brief characterization of tsutld
- KEYRATE.EXE Set keyboard repeat rate & delay
- POPSCR.EXE Pop screen from image file
- PSK.EXE Dis/enable the PrintScreen key
- PUSHSCR.EXE Push screen to image file
- SETPRT.EXE Set PrintScreen retry times
- SWITCHAR.EXE Makes Unix freaks feel at home
- TODAY.EXE Scan disk for files made today
- TSPROG.INF List of PD programs from T.Salmi
- TSUTLD.INF Document
- TSUTLD.NWS News announcements about tsutld
- VAASA.INF Info: Finland, Vaasa, U of Vaasa
- WARMBOOT.EXE Reboot with/without memory tests
- ---- ------ ------ -----
- 0018 158211
-
-
- - 2 -
-
- ADJCURS.BAT Adjust cursor size
- ===========
-
- Usage: ADJCURS choice
- where the choice must be 1-7:
- 1 Big resident cursor
- 2 Medium resident cursor
- 3 Big transient cursor
- 4 Medium transient cursor
- 5 Restore original cursor for 1 and 2
- 6 Restore original cursor for 3 and 4
- 7 Map the resident programs
-
- Although BIGCURS.EXE and BIGNCURS.EXE can be used without further
- utilities, to use *this batch* you must have the TSR Utilities from
- TurboPower Software. In particular you'll need the programs
- MARK.EXE, RELEASE.EXE, and MAPMEM.EXE. Another utility that is
- necessary for this batch, is RESET.EXE by Timo Salmi. RESET restores
- the original screen settings. You should be able to obtain them by
- downloading TSRCOM35.ZIP and TSUTIL41.ZIP (or whichever version
- numbers are current) from any well-stocked BBS or FTP site, such as
- Vaasa FreePort BBS and garbo.uwasa.fi, 128.214.87.1, Vaasa, Finland.
- ┌───────────────────────────────────────────────────────────────┐
- │ Warning: It is not advisable to load the resident cursor more │
- │ than once. │
- └───────────────────────────────────────────────────────────────┘
-
- Hint: First experiment with the non-resident BIGNCURS.EXE to find
- the cursor size you prefer, and then apply BIGCURS.EXE.
-
- Release notes: Release 1.1: I have now tested the programs with
- several video adapters. I have added the option to give the
- starting scan line of the cursor as a numerical parameter. For
- example to get a medium size cursor you can alternatively use
- BIGCURS 3
- or whatever is best applicable on your system. Another improvement,
- thanks to Erik Jacobsen, is that the BIGCURS.EXE program releases
- the timer interrupt for the other resident programs that may be
- running. Thus the other TSRs that may use the timer, are not frozen
- by bigcurs.
-
- Release 2.1:
- - The batch now checks whether the resident cursor has already been
- loaded, so that the user cannot mistakenly load an extra copy on
- top of the already loaded one.
- - The batch now recognizes also MsDos 6.0 to load the resident big
- cursor in the upper memory for MsDos 5.0 or 6.0.
-
-
- CAPS (Ver. 1.1) Get/set keyboard toggles
- ===============
-
- Usage : CAPS [get] [c+│-] [n+│-] [s+│-] [/b]
- only get status ─┘ │ │ │ │
- set CapsLock ─┘ │ │ │
- set NumLock ─┘ │ │
- set ScrollLock ─┘ │
- batch mode, no output ─┘
-
- The purpose of this program is to set and/or report the state of the
- keyboard toggles. This is useful in special situations such as in
- batch files when the state of these toggles need to be controlled,
- or if there are no keyboard leds, or if there is something wrong
- with the keyboard keys or leds.
-
- The output will be in the format:
- CapsLock OFF
- NumLock ON
- Insert OFF
- ScrollLock OFF
-
- An example. If you wish that the NumLock key is off when you boot
- our PC, put the following, simple line in our autoexec.bat file
- CAPS n-
-
-
- FILES (Ver. 1.2a) Summary of your different files
- =================
-
- Where does all your precious disk space go? FILES.EXE can be used to
- answer this question. It gives the following type of statistics
- (this is for my laptop's ramdisk):
-
- Type Count Size Allocation Efficiency
- . 1 419 512 81.84
- .COM 4 13473 13696 98.37
- .EXE 3 106212 106368 99.85
- .TPU 1 15536 15616 99.49
- Total D: 9 135640 136192 99.59
-
- The statistics can be sorted by any of the fields:
-
- Usage: FILES [device:]
- [/n(o sort)] (the default sort is by extension)
- [/c(ount sort)]
- [/s(ize sort)]
- [/a(allocation sort)]
- [/e(fficiency sort)]
- [/r(everse sort)]
- or: FILES ?
-
- Hint 1: If you have several partitions on your harddisk, and want to
- assess the overall file usage, apply MsDos join command before
- running files.exe. See your MsDos manual for using join.
-
- Hint 2: FILES does not include a switch for page by page scrolling
- since this is easily achieved by proper filtering. For example use
- FILES | MORE or better still, if you have Veron Buerg's well-known
- list program, use FILES | LIST /S.
-
- Release notes:
- Version 1.2: If the files are sorted by count (/c), size (/s), or
- allocation (/a), the percentage of each file type is shown as an
- additional column. - The capacity of the program has been increased
- from 2500 different file types to 3000.
- Version 1.2a: Brought address information up to date.
-
-
- POPSCR.EXE (Ver 1.1) Pop screen from image file saved by PUSHSCR
- ====================
-
- Usage: POPSCR ImageFileName
-
- For batch programming, returns errorlevel 1 if operation
- unsuccessful, else 0.
-
- PUSHSCR, POPSCR, and RESET from TSUTIL*.ZIP) make up a set of
- related utilities, but very useful in cases where you wish to
- restore the original screen after running an application
- (YourProgram). To utilize this idea make the following kind of a
- batch to call your application. You may have to edit the paths (r:\)
- somewhat. I have used r:\ below because my r: drive is a ramdisk
- which makes this very fast. But you do not need a ramdisk. Any drive
- / directory will do just as well.
-
- @echo off
- pushscr r:\tmp$$$.scn /o
- YourProgram %1 %2 %3 %4 %5 %6 %7 %8 %9
- reset
- popscr r:\tmp$$$.scn
- if exist r:\tmp$$$.scn del r:\tmp$$$.scn > nul
-
- Release notes: Version 1.1:
- - Added 43/50 lines support
-
- Release notes: Version 1.2:
- - Improved the screen image file status checking
-
-
- PUSHSCR.EXE (Ver 1.2) Push screen to image file
- =====================
-
- Usage: PUSHSCR ImageFileName [/o]
- overwrite if already exists ─┘
-
- For batch programming, returns errorlevel 1 if operation
- unsuccessful, else 0.
-
- Release notes: Version 1.1:
- - Added 43/50 lines support
-
- Release notes: Version 1.2:
- - Improved the screen image file status checking
-
-
- KEYRATE (Ver. 1.0a) Set keyboard repeat rate & delay
- ===================
-
- Usage: KEYRATE DelayCode RepeatRateCode [/b]
- └─ batch mode, no output
-
- When a key is held down there is a default delay before it starts
- repeating, and then the key repeats at a default rate. KEYRATE
- resets both the delay, and the repeat rate. The facility is useful
- e.g. when you want to speed up the cursor movement by increasing the
- repeat rate. Or if you have a faulty keyboard striking ddoouubble,
- you can try a temporary remedy by increasing the delay. The
- facilities used in this program do not work for XTs and older ATs.
- The delay and the rate are coded as follows:
- code delay (ms) code rate (chars per sec)
- 0 250 0 30.0
- 1 500 1 26.7
- 2 750 2 24.0
- 3 1000 3 21.8
- 4 20.0
- : :
- 30 2.1
- 31 2.0
- KEYRATE recognizes the type of your processor chip and ROM BIOS
- version and informs whether the program is likely to have an effect
- or not.
- If you have MsDos 5.0, or later, you can naturally use MsDos's
- own mode command e.g. as follows MODE con: rate=30 relay=1
-
- Release notes:
- Version 1.0a: Brought address information up to date.
-
-
- PSK (Ver. 1.0) Dis/enable the PrintScreen key
- ==============
-
- PSK.EXE was added to this collection in release TSUTLD14.arc.
- Running PSK disables your PrintScreen key. It works as a toggle.
- Running PSK again reverses the process and enables the PrintScreen
- key. This is a utility that is particularly useful on laptops with
- cramped keyboads where you want to avoid the consequences of an
- accidental hitting of the PrintScreen key. Internally, PSK works by
- manipulating the contents of the memory location 0000:0500 Hex.
-
-
- SETPRT (Ver 1.0) Set PrintScreen retry times
- ================
-
- Usage: SETPRT [RetryTimes]
-
- If your printer is offline and you hit the PrintScreen key by
- accident, (depending on your hardware) you may be in for an annoying
- wait while your computer goes through its (default 20) recycles of
- retrying the printing. You can use this program to reset the times
- your computer retries PrintScreen before your computer accepts input
- again. Notice that some systems detect the printer's offline status
- immediately, others don't. You'll need setprt in the former case.
- For example I have a Zenith Z-181 laptop as one of my many PCs, and
- I find it useful to reset the retry times to 3 in its autoexec.bat.
- On the other hand, I don't need this trick on my Trifunic 386
- desktop, since it detects the offline condition of the printer as
- soon as I apply the PrintScreen key.
-
- Hint: Using an excessively small value, like 1, may cause problems
- by giving too hasty offline feedback to some programs.
-
-
- SWITCHAR (Ver 1.1) Toggle the switch character
- ==================
-
- In our series of completely useless programs please meet switchar
- for Unix freaks. Switchar toggles the MsDos switchar between the
- slash (/) and the hyphen (-). When the switchar is the hyphen, the
- slash can be used in path names instead of the backslash (\). Have
- fun.
-
- Example: You can use expressions like dir -w c:/progs/yak
-
- Warning 1: Using the hyphen as switchar may have unexpected effects
- on some programs.
-
- Warning 2: I think this option does not work for MsDos 5+. If I
- recall correctly, the feature was dropped.
-
-
- TODAY (Ver. 1.2) Scan disk for files made today
- ================
-
- Usage: TODAY DirectoryMask [/the options (see below)]
- /Bxx since xx days Back
- /Dddmmyy since ddmmyy
- /E only Exact date (else date and later)
- /N No recursion (else all files in the default directory and below)
-
- Examples:
- To scan the entire disk: TODAY C: or TODAY C:\
- To scan the current directory and its subdirectories: TODAY *.*
- To scan the Pascal files for today and yesterday: TODAY C:\*.PAS /B1
-
- Hidden files are indicated by h, and read-only files by r.
-
- Release notes:
- Version 1.2: Corrected a file mask bug in formats like TODAY . and
- TODAY D: when used from another drive like C:.
- Version 1.3: Corrected a directory detection routine bug which
- misled the program in the Windows' dos box.
-
-
- WARMBOOT (Ver. 1.1) Reboot with/without memory tests
- ===================
-
- Reboot your PC as if alt-crtl-del had been pressed
-
- Usage: WARMBOOT [/b] [/c] [/e] [/n] [/t]
- Batch mode ─┘ │ │ │ │
- Coldboot instead ─┘ │ │ │
- Execute ─┘ │ │
- No confirmation ─┘ │
- Test only, don't actually reboot─┘
-
- If there are errors, errorlevel is set to 1 for batch usage.
-
- Looking for a program to reboot one's PC from a batch file has been
- a frequent question on the Usenet news. The replies often present a
- quick assembler code. Be cafeful. Usually they do not flush the
- buffers before rebooting and you might lose some data. Disclaimer:
- No program can guarantee absolute safety from harm's way.
-